package com.whimscrew.dept.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/dept")
public class DeptController {

    @Value("${config.text}")
    private String text;

    @Value("${server.port}")
    private String port;

    @GetMapping
    public String text(){
        return "dept "+port+" : " + text;
    }

}
